package com.hancher.common.androidutil;

import com.hancher.common.base.BaseApplication;
import com.tencent.bugly.crashreport.CrashReport;

/**
 * 作者 : Hancher ytu_shaoweijie@163.com <br/>
 * 时间 : 2021/6/19 0019 10:38 <br/>
 * 描述 : 模块启用后，直接使用init启动即可
 * https://bugly.qq.com/v2/crash-reporting/crashes/054ea7d568?pid=1
 */
public class BuglyUtil {

    /**
     * 启动bugly
     */
    public static void init(String buglyId) {
        CrashReport.initCrashReport(BaseApplication.getInstance(), buglyId, ApkInfoUtil.isApkInDebug());
    }

    public static void test() {
        CrashReport.testJavaCrash();
    }
}
